package com.smart.seven.aop.cglib;

/**
 * 实现类
 *
 * @author junrui.wang
 * @create 2018/7/24
 */
public class ForumServiceImpl implements ForumService {
    public void removeTopic(int topicID) {
        //移除性能监视横切代码
        //PerformanceMonitor.begin("com.smart.seven.aop.noproxy.ForumServiceImpl.removeTopic");
        System.out.println("模拟删除Topic记录:" + topicID);
        try {
            Thread.currentThread().sleep(20);
        } catch (InterruptedException e) {
            throw new RuntimeException();
        }
        //移除性能监视横切代码
        //PerformanceMonitor.end();

    }

    public void removeForum(int forumID) {
        //移除性能监视横切代码
        //PerformanceMonitor.begin("com.smart.seven.aop.noproxy.ForumServiceImpl.removeForum");
        System.out.println("模拟删除Forum记录:" + forumID);
        try {
            Thread.currentThread().sleep(40);
        } catch (InterruptedException e) {
            throw new RuntimeException();
        }
        //移除性能监视横切代码
        //PerformanceMonitor.end();
    }
}
